<!DOCTYPE html>
<html lang="en">
<head>
    <title>{% block title %}Malware Intelligence Project{% endblock %}</title>
</head>

<body>

{% load staticfiles %}
<script src="{% static 'dashboard/index.js' %}"></script>
<div>
    
    <h1><a href="{% url 'index' %}"> Welcome to the Malware Intellignce Project</a></h1>
    <p>


    There are currently {{ num_samples }} analyses with 
    {{ num_tags }} tags and {{ num_sidtid }} associations 


    <form action="{% url 'dashboard:search' %}" method="post"> 
    {% csrf_token %}

    <input type="text" name="search_text" size="50">

    <select id="serach_table" name="search_table" onchange=change_types(this.value)> 
        <option value="tag" selected="selected">Tag</option>
        <option value="sample">Sample</option> 
    </select>

    <span id="search_type"></span>
    <script>change_types('tag')</script>


    <br>
    <br>
    Seach: <input type='submit'>
    </form>

    <div id="content">
        {% block content %}{% endblock %}
    </div>

</div>
{% if error %}
REPORTED ERRORS: {{ error }}
{% endif %}

{% if debug %}
DEBUG MESSAGE: {{ debug }}
{% endif %}
</body>
</html>
